#include "SubsystemTickShow.h"
#include "Log.h"

namespace PocketSurvival
{
    static const std::string subsystemName = "TickShow";
    const std::string& SubsystemTickShow::getName() const
    {
        return subsystemName;
    }
    void SubsystemTickShow::update(float dt)
    {
        if(showTick)
        {
            showTickWaitTime += dt;
            if(showTickWaitTime >= 0.5f)
            {
                showTickWaitTime = 0;
                Log::Info(fmt::format("show tick time : {}", dt));
            }
        }
    }
    void SubsystemTickShow::load(const nlohmann::json &json) {}
    void SubsystemTickShow::save(nlohmann::json &json) {}
    void SubsystemTickShow::saveToMsgJson(nlohmann::json &jsonData) {}
}